import http from '@/utils/http'
import { useAuthStore } from '@/store/auth'
import { storeToRefs } from 'pinia'

const authStore = useAuthStore()
const { globalParams } = storeToRefs(authStore)
interface DeviceInfo {
  id: string
  deviceType?: string
}
// 获取设备标注详情
export function getDeviceAnnotationDetail (data: DeviceInfo) {
  return http.get('/tunnel/getDeviceAnnotationDetail', {
    params: {
      customerNo: globalParams.value.customerNo,
      ...data
    }
  })
}

// 获取巷道基本信息
export function getTunnelBaseInfo () {
  return http.get('/tunnel/tunnelBaseInfo', {
    params: {
      customerNo: globalParams.value.customerNo,
    }
  })
}